import request from '@/utils/request'

// 查询考勤规则列表
export function listRecord_role(query) {
  return request({
    url: '/system/record_role/list',
    method: 'get',
    params: query
  })
}

// 查询考勤规则详细
export function getRecord_role(id) {
  return request({
    url: '/system/record_role/' + id,
    method: 'get'
  })
}

// 新增考勤规则
export function addRecord_role(data) {
  return request({
    url: '/system/record_role',
    method: 'post',
    data: data
  })
}

// 修改考勤规则
export function updateRecord_role(data) {
  return request({
    url: '/system/record_role',
    method: 'put',
    data: data
  })
}

// 删除考勤规则
export function delRecord_role(id) {
  return request({
    url: '/system/record_role/' + id,
    method: 'delete'
  })
}
